<?php

namespace IDock\Insurance\LIHI\Request;

use IDock\Insurance\LIHI\Request\AllLIHIRequest;
use IDock\Insurance\LIHI\Response\NonCarProductListResponse;
use IDock\Visitor\NonCar\NonCarProductListVisitor;

class NonCarProductListRequest extends AllLIHIRequest
{

    protected $urlTip = '非车产品列表';

    public $route = 'cpservice/queryPlans';

    protected $response = NonCarProductListResponse::class;

    /*** @var NonCarProductListVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $arr = [
            'products' => [
                "2724",
                "3105"
            ],//用户代码
            'paraMap' => [
                "00005" => "1",
                "00006" => "1",
                "00007" => "2",
                "00001" => $this->visitor->seats ?: '5',
                "00002" => "365",
                "00003" => "26",
                "00008" => "LBN003",
                "00041" => "0"
            ],//非车渠道代码，保司分配
        ];

        return $arr;
    }
}
